package com.angel.service.ServiceImpl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.angel.bean.Feedback;
import com.angel.mapper.FeedbackMapper;
import com.angel.service.FeedbackService;

@Service
public class FeedbackServiceImpl implements FeedbackService{

    @Resource
    private FeedbackMapper feedbackMapper;

    @Override
    public int insert(Feedback feedback){
        return feedbackMapper.insert(feedback);
    }

    @Override
    public int insertSelective(Feedback feedback){
        return feedbackMapper.insertSelective(feedback);
    }

    @Override
    public int insertList(List<Feedback> feedbacks){
        return feedbackMapper.insertList(feedbacks);
    }

    @Override
    public int updateByPrimaryKeySelective(Feedback feedback){
        return feedbackMapper.updateByPrimaryKeySelective(feedback);
    }

    @Override
    public List<Feedback> getAllFeedBack(Feedback feedback) {
        return feedbackMapper.getAllFeedBack(feedback);
    }
}
